//
//  DoctorAddressCell.m
//  WE
//
//  Created by iMacOne on 15/11/20.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "DoctorAddressCell.h"
#import "Size.h"
@interface DoctorAddressCell ()
@property (nonatomic, strong)UIImageView * aImgeView;
@property (nonatomic, strong)UILabel * titleLbl;
@property (nonatomic, strong)UILabel * contentLbl;
@property (nonatomic, strong)UILabel * secLbl;

@end

@implementation DoctorAddressCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.aImgeView = [[UIImageView alloc] initWithFrame:CGRectMake(margin_10 * Width, margin_10 * Height, 20 , 20)];
        self.aImgeView.layer.masksToBounds = YES;
        self.aImgeView.layer.cornerRadius = 10;
        self.aImgeView.backgroundColor = [UIColor colorWithRed:0.7366 green:0.4617 blue:0.5971 alpha:1.0];
        _aImgeView.image = [UIImage imageNamed:@"iconfont-zhuanshujiatingyisheng"];
        
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_aImgeView.frame) + margin_5, _aImgeView.frame.origin.y, margin_64, 20)];
        _titleLbl.font = FONT(14);
        _titleLbl.text = @"执业点";
        
        self.contentLbl = [[UILabel alloc] initWithFrame:CGRectMake(_aImgeView.frame.origin.x, CGRectGetMaxY(_titleLbl.frame) + margin_10, 200, margin_20)];
        _contentLbl.font = FONT(12);
        _contentLbl.textColor = [UIColor grayColor];
        _contentLbl.text = @"复旦大学附属华山医院";
        _contentLbl.numberOfLines = 0;
        
        self.secLbl = [[UILabel alloc] initWithFrame:CGRectMake(WindowWidth - 60, _contentLbl.frame.origin.y, 60, margin_20)];
        _secLbl.font = FONT(12);
        _secLbl.textColor = [UIColor grayColor];
        _secLbl.text = @"肾内科";
        _secLbl.numberOfLines = 0;
        
        [self.contentView addSubview:_aImgeView];
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_contentLbl];
        [self.contentView addSubview:_secLbl];

    }
    return self;
}



@end
